package com.zzvcom.persist.model.admin;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.zzvcom.persist.model.IdEntity;

@Entity
@Table(name = "news")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class News extends IdEntity
{
    private String title;

    private String keywords;

    private String shortdes;

    private String addtime;

    private int seq;

    private String ntype;

    @Lob
    // @Basic(fetch = FetchType.LAZY)
    @Column(nullable = true)
    private String content;

    public String getTitle()
    {
        return title;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getKeywords()
    {
        return keywords;
    }

    public void setKeywords(String keywords)
    {
        this.keywords = keywords;
    }

    public String getShortdes()
    {
        return shortdes;
    }

    public void setShortdes(String shortdes)
    {
        this.shortdes = shortdes;
    }

    public int getSeq()
    {
        return seq;
    }

    public void setSeq(int seq)
    {
        this.seq = seq;
    }

    public String getContent()
    {
        return content;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public String getAddtime()
    {
        return addtime;
    }

    public void setAddtime(String addtime)
    {
        this.addtime = addtime;
    }

    public String getNtype()
    {
        return ntype;
    }

    public void setNtype(String ntype)
    {
        this.ntype = ntype;
    }

}
